-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: try adding libtool to brew install #301
base: main
Are you sure you want to change the base?
Conversation
ah, yeah super gross indeed. I think the time has come to CMake fastjet and submit a PR. |
So what's confusing to me is that if you check the
and in the In |
@henryiii Have you run into stuff like this before? |
This is one of two things: everything is now inside /opt/homebrew and GitHub ships a slimmed down image for 14+ that has some homebrew binaries manually removed. |
Hm. If I rebase on top of all the other PRs I have open at the moment (#313, #315, #316), I'm able to get things working if before installing in the CI fastjet/.github/workflows/ci.yml Line 61 in 8798649
I manually set the include paths and lib paths for the headers ( Lines 102 to 107 in 8798649
complains about
and then additionally editing @@ -96,7 +96,7 @@ class FastJetBuild(setuptools.command.build_ext.build_ext):
env = os.environ.copy()
env["CXX"] = env.get("CXX", "g++")
- env["LDFLAGS"] = env.get("LDFLAGS", "") + f" -Wl,-rpath,{_rpath}"
+ env["LDFLAGS"] = env.get("LDFLAGS", "")
env["ORIGIN"] = "$ORIGIN" # if evaluated, it will still be '$ORIGIN'
subprocess.run(["make", "-j"], cwd=FASTJET, env=env, check=True)
subprocess.run(["make", "install"], cwd=FASTJET, env=env, check=True)
@@ -106,8 +106,7 @@ class FastJetBuild(setuptools.command.build_ext.build_ext):
"./configure",
f"--fastjet-config={FASTJET}/fastjet-config",
f'CXX={env["CXX"]}',
- "CXXFLAGS=-O3 -Bstatic -Bdynamic -std=c++17",
- f'LDFLAGS={env["LDFLAGS"]}',
+ f'CXXFLAGS=-O3 -Bstatic -Bdynamic -std=c++17 {env["LDFLAGS"]}',
],
cwd=FASTJET_CONTRIB,
env=env, given that for $ ./configure --help
This is a FastJet-contrib tool to configure the behaviour of
the build and installation.
Usage:
configure [--help] [--list] [--fastjet-config=FILE] [--prefix=PREFIX] [CXX=...] [CXXFLAGS=...]
The arguments can be the following [default in square brackets]:
--help prints this message and exits
--list prints the list of existing contribs and exits
--fastjet-config=FILE
sets the 'fastjet-config' file to use [fastjet-config]
--prefix=PREFIX sets the installation directory [prefix returned by fastjet-config]
--only=Contrib1,Contrib2,...
only configures for compilation selected contribs
--exclude=Contrib1,Contrib2,...
excludes selected contribs from configuration But manually setting these flags for compilation in CI jobs seems very bad, so there has to be some centralized way of informing the OS where to look for Homebrew installed headers and libraries. (Though I don't know how development on macOS works in general. 🤷) edit: TIL that Homebrew has
works. I should have guessed that pattern. Though it would still be good to update this globally for the |
It's not default with build tools in OS14.